home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3623 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  655 b 

  1. Path: news.walrus.com!news
  2. From: fjordao@walrus.com (Felipe Jordao)
  3. Newsgroups: comp.lang.c++
  4. Subject: [Q] Converting dates in MMYY to YYMMDD format
  5. Date: Thu, 25 Jan 1996 01:36:06 GMT
  6. Organization: HAC
  7. Message-ID: <4e6ms8$ad5@walrus2.walrus.com>
  8. NNTP-Posting-Host: p22.ts1.walrus.com
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11.  
  12. Hi,
  13.  
  14. I have a rather clumsy function that converts a character string in
  15. MMYY format, (such as 1195 for November 1995) into a long DDMMYY
  16. format, where DD is always the last day of the month.  Hence "1282"
  17. would be converted into 821231 (a long).
  18.  
  19. Does anyone know a quick way of doing this (around 10-20 lines of
  20. code)?
  21.  
  22. Felipe
  23.  
  24.